import requestInstance from '/utils/http.js'

/**
 * @description 获取商品列表数据
 * @param { Object }  param {page,limit,categoryId,category2Id}
 * @returns Promise
 */
export const reqGoodsList =({page,limit,...data})=>{
	return requestInstance.get(`/goods/list/${page}/${limit}`,data)
}
/**
 * @description 获取商品详情
 * @param 商品ID
 * @returns Promise
 */
export const  reqGoodsDetail = (goodsId)=>{
	return requestInstance.get(`/goods/${goodsId}`)
}
